/*
 * Author: Radin Ahmed Ehsan; radin.ahmed.ehsan@gmail.com; radinehsan.wordpress.com
 *
 * Project Madhumati
 *
 * This is a simple modeling tool to model the movement of a ball after it is released from the bowlers hand.
 * This can so far find out where the ball is pitched in terms of distance from stump.
 * The spin and the swing of the ball has to be implemented since it is not yet done.
 * 
 */

import java.util.*;
import java.io.*;

public class SimpleModel{
  
  
  public static void main(String args[]){
    
//  Scanner for Console input
    Scanner input = new Scanner(System.in);
//  Scanner for Console input
// //   Scanner input = new Scanner(new File(""));
    
    double hieght, speed, angle;
    
    hieght = input.nextDouble();
    
    speed = input.nextDouble();
    
    angle = input.nextDouble();
    
    double temp;
    
    double speedHor, speedVer;
    
    double angleRad = angle/180*Math.PI;
    
    speedHor = speed*(Math.cos(angleRad));
    
    speedVer = speed*(Math.sin(angleRad));
    
    
    double time;
    
    double tempS, tempS1, tempS2;
    
    tempS1 = (2*speedVer*speedVer*2) - (4*(-1)*2*hieght*9.81);
    
    tempS1 = Math.sqrt(tempS1);
    
    tempS2 = -2*speedVer;
    
    tempS1 = tempS1 + tempS2;
    
    tempS2 = tempS1/(2*9.81);
    
    
    
    System.out.println("The Ball will pitch after " + (speedHor*tempS2) + " yards");
    
    double fullDis = 22 - (speedHor*tempS2);
    
    double timeF = fullDis/speedHor;
    
    
    double finalHeight = 0.5*9.81*(timeF*timeF);
    
    System.out.println("Final height of ball is " + finalHeight);
    
    
  }
  
}